import { getAssociateListByAmap } from '@/utils/amapapi'

/**
 * 搜索关键字获取高德位置列表
 * @param {Number}  pageNo 页码
 * @param {Number} pageSize 每页条数
 * @param {String} searchText 输入查询文本
 */
async function getAmapList(searchText, pageIndex, pageSize) {
  let res = await getAssociateListByAmap(searchText, pageIndex, pageSize)
  // console.warn(res)
  let data = {
    amapList: res.poiList.pois,
    amapCount: res.poiList.count
  }
  return data
}
export { getAmapList }
